//
//  KKConversationManager.h
//  ReplyAssistant
//
//  Created by liaozhenming on 2018/11/23.
//  Copyright © 2018 KK. All rights reserved.
//

#import <Foundation/Foundation.h>

@class KKConversationItem;

typedef void(^KKConversationRequestSuccessBlockHandle)(BOOL success,id result);
typedef void(^KKConversationNumberUpdateBlockHandle)(NSArray* items);

NS_ASSUME_NONNULL_BEGIN

@interface KKConversationManager : NSObject

//  发送获取所有会话请求
+ (void)sendAllConversationItemsRequest:(KKConversationRequestSuccessBlockHandle)success;

//  接收到新的推送消息
+ (void)receiveNewMessage:(NSDictionary*)newMessage;


+ (instancetype)defaultManager;

@property (nonatomic, strong) KKConversationNumberUpdateBlockHandle numberUpdateHandle;

@property (nonatomic, weak) KKConversationItem *currentItem;     //当前会话对象

+ (void)removeItem:(KKConversationItem*)item;

@end

NS_ASSUME_NONNULL_END
